package com.windfone.service.impl;

import java.util.List;

import com.windfone.dao.AuthorityDao;
import com.windfone.model.OperateAuthority;
import com.windfone.service.AuthorityService;

public class AuthorityServiceImpl implements AuthorityService {

	private AuthorityDao  authorityDao;
	public void setAuthorityDao(AuthorityDao authorityDao) {
		this.authorityDao = authorityDao;
	}

	public int deleteOperateAuthority(int keyValue) {
		return authorityDao.deleteOperateAuthority(keyValue);
	}

	public int updateOperateAuthority(OperateAuthority bean) {
		return authorityDao.updateOperateAuthority(bean);
	}

	public int insertOperateAuthority(OperateAuthority bean) {
		return authorityDao.insertOperateAuthority(bean);
	}

	public List<OperateAuthority> getOperateAuthorityById(int keyValue) {
		return authorityDao.getOperateAuthorityById(keyValue);
	}

	public List<OperateAuthority> getOperateAuthorityByUserId(int userId) {
		return authorityDao.getOperateAuthorityByUserId(userId);
	}

}
